export default function list(state={
		loading:true,
		data: [],
	},action){
	//console.log('action',action)
	switch(action.type){
		case 'LIST_UPDATE_SUCC':
			return {
				data:action.data,
				loading:false
			}
			case 'LIST_UPDATE':
			return {
				data: state.data,
				loading:true
			}
		case 'LIST_UPDATE_ERR':
			return {
				data:[],
				loading:false
			}
		default:
			return state;
	}
}